package com.qj.yantaishan.mapper;


import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.qj.yantaishan.domain.CateGory;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface CateGoryMapper extends BaseMapper<CateGory> {
   /**
    * @查询所有分类
    **/
   @Select("select * from shanglala_store_news_category")
    public List<CateGory> selectnews();

    /**
     * @根据id查询分类
     **/
//    @Select("select * from shanglala_store_news_category whrer id=#{id}")
    public List<CateGory> selectnewsId(Integer id);

    /**
     * 更新新闻分类
     * @param cateGory 新闻分类实体类
     * @return int 返回影响的函数
     * */
    public int updateNews(CateGory cateGory);


}
